const { Schema, model } = require('mongoose');
const contractSchema = new Schema({
    carId: {
        type: Schema.Types.ObjectId,
        ref: 'carModel'
    },
    advertiseId: {
        type: Schema.Types.ObjectId,
        ref: 'advertiseModel'
    },
    houseId: {
        type: Schema.Types.ObjectId,
        ref: 'houseModel'
    },
    numbers: String, //资源名称
    leaseeContacts: String,//联系人
    contractNumber: String,//合同编号
    contractName: String,
    price: String,//收费金额  2
    leaseeTel: String,//联系电话   2
    tenant: String, //租户  2
    signingDate: String,//签订日期  2
    off_hire: String,//停租日期   2
    start_date: String,//起租日期`  2
});
const contractModel = model('contractModel', contractSchema, 'contract');
module.exports.contractModel = contractModel;